<include file="Restaurant:header" />
<head>
	<link rel="stylesheet" href="/assets/base/repair/js/sweetalert/lib/sweet-alert.css">
</head>
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/base/restaurant/images/load-bee.png"/>

    </div>
    <div class="top">

	        <p>
	            <a onclick ="javascript:history.go(-1);" class="iconfont icon-zuo pull-left"></a>
	            <a href="#" class="order-all pull-left">订单详情</a>
	        </p>

    </div>
	<if condition="($data.status eq 3) || ($data.status eq 4 )">
	    <div class="prompt">
	        <span class="iconfont icon-duigou"></span>
	        <p>确认收货</p>
	    </div>
	</if>
    <div class="order-lists lists">
        <a href="/restaurant/ZduMobile/menu/restaurant_id/{BEESCRM:$data.restaurant_id}/res_id/{BEESCRM:$res_id}">
	    <div class="lists tb-mode bottom-none">
            <div class="tb-cell list-left">
                {BEESCRM:$data.RestaurantInfo.restaurant_name}
            </div>
            <div class="tb-cell list-right"><span class="iconfont icon-you"></span></div>
        </div>
        </a>
    </div>
    <div class="order-lists lists">
        <div class="lists tb-mode">
            <a href="#" class="tb-cell list-left">菜单详情（<span class="num">{BEESCRM:$count}</span>个菜）</a>
        </div>
	    <volist name="data.RestaurantOrderGoods" id="vo">
		    <div class="lists tb-mode foods">
			    <a href="#" class="tb-cell list-left">
				    <div class="img-box"><img src="{BEESCRM:$vo.goods_logo}"></div>
			    </a>
			    <a href="#" class="tb-cell list-center">
				    <p>{BEESCRM:$vo.goods_name}</p>
				    <p class="prize">{BEESCRM:$vo.goods_price}元</p>
			    </a>
			    <div class="tb-cell list-right">
				    <div class="tb-mode amount" style="text-align: center;border:0;">
					    {BEESCRM:$vo.goods_num}份
				    </div>
			    </div>
				<div class="tb-cell list-right">
					<div class="tb-mode amount " style="text-align: center;border:0;">
						<if condition="$data.status neq 0">
							<if condition="$vo.goods_status eq 0">
								<span style="color: black">已下厨</span>
								<elseif condition="$vo.goods_status eq 1"/>
								<span style="color: red">待取菜</span>
								<else/>
								<span style="color: #1cbdeb">已取菜
							</if>
						</if>
					</div>
				</div>
		    </div>
	    </volist>

        <div class="lists tb-mode bottom-none">
            <div class="tb-cell list-left">总价：<span class="num">{BEESCRM:$data.money_sum}元</span></div>


	        <if condition="$data.status eq 0">
		        <div class="tb-cell list-right"><a href="javascript:void(0);" class="order-btn cancle reset" data-order_id="{BEESCRM:$data.order_id}">取消</a><a href="/index.php?g=restaurant&m=ZduMobile&a=confirmOrders&order_id={BEESCRM:$data.order_id}&res_id={BEESCRM:$res_id}" class="order-btn success" data-order_id="{BEESCRM:$data.order_id}">去付款</a></div>
	        </if>


	        <if condition="$data.status eq 7">
		        <div class="tb-cell list-right"><a class="order-btn cancle">已取消</a></div>
	        </if>
	        <if condition="$data.status eq 8">
		        <div class="tb-cell list-right"><a class="order-btn cancle">已关闭</a></div>
	        </if>
        </div>
    </div>
    <div class="order-lists lists">
        <div class="lists order-mes bottom-none">
			<p><span class="field">桌&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>{BEESCRM:$data.order_num}</p>
			<p><span class="field">下单时间：</span>{BEESCRM:$data.create_time|date="Y-m-d H:i",###}</p>
            <p><span class="field">订单编号：</span>{BEESCRM:$data.order_sn}</p>
            <p><span class="field">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>{BEESCRM:$data.memo}</p>
        </div>
    </div>

	<if condition="($data.status eq 3) || ($data.status eq 4)">
	<div class="btn-box">
		<a href="/restaurant/ZduMobile/menu/restaurant_id/{BEESCRM:$data.restaurant_id}/res_id/{BEESCRM:$res_id}" class="btn green-btn">还吃这家！</a>
	</div>
		</if>
</div>
<input id="res_id" type="hidden" value="{BEESCRM:$res_id}">

<div class="pop-box" id="order-comment">
	<div class="main comment-box">
		<div class="top">
			<p>
				<a href="#" class="iconfont icon-guanbi pull-left" id="pj-close"></a>
				<a href="#" class="order-all pull-left">发表评价</a>
			</p>
		</div>
		<div class="block-opacity block-bg">
			<p class="bow"><img src="/assets/base/restaurant/images/bow.png"></p>
			<p>评论一下，消消食~</p>
		</div>
		<div class="lists">
			<p class="stars star1">
				口味：
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
			</p>
		</div>

		<div class="lists">
			<p class="stars star2">
				质量：
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
			</p>
		</div>

		<div class="lists">
			<p class="stars star3">
				配送：
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
				<span class="iconfont icon-xingxing star big-star grey-star"></span>
			</p>
		</div>
		<div class="lists tb-mode">
			<p class="stars tb-cell" style="width: 36px;">内容：</p>
			<textarea placeholder="请输入内容" class="tb-cell pj-nr" id="comment" maxlength="330"></textarea>
		</div>
		<input class="rstid" type="hidden">
		<input class="order_id" type="hidden">
		<a href="javascript:void(0);" class="pj-btn">确认提交</a>
	</div>
</div>

<include file="Restaurant:commonJS" />
<script src="/assets/activity/vote/js/classie.js"></script>
<script src="/assets/base/restaurant/js/order.js"></script>
<script src="/assets/activity/vote/js/modalEffects.js"></script>
</body>
</html>
